const joi = require('joi')
    // const username = joi.string().alphanum().min(3).max(12).required()
    // const password = joi.string().alphanum().pattern(/^[\S]{6,12}$/).required()
const nickname = joi.string().alphanum().min(2).max(24).required()
const id = joi.number().integer().min(1).required()
const email = joi.string().email().required()
const name = joi.string().alphanum().min(2).max(24).required()




exports.add_cate_schema = {
    body: {
        name,
        nickname,
    }
}

exports.get_cate_schema = {
    params: {
        id,
    }
}

exports.update_cate_scha = {
    body: {
        id,
        name,
        nickname,
    }
}